<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewUserTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewUserLabel_idUser}"/>
                    <h:outputText value="#{userController.selected.idUser}" title="#{bundle.ViewUserTitle_idUser}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_EMail}"/>
                    <h:outputText value="#{userController.selected.EMail}" title="#{bundle.ViewUserTitle_EMail}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_name}"/>
                    <h:outputText value="#{userController.selected.name}" title="#{bundle.ViewUserTitle_name}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_surname}"/>
                    <h:outputText value="#{userController.selected.surname}" title="#{bundle.ViewUserTitle_surname}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_indexNumber}"/>
                    <h:outputText value="#{userController.selected.indexNumber}" title="#{bundle.ViewUserTitle_indexNumber}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_description}"/>
                    <h:outputText value="#{userController.selected.description}" title="#{bundle.ViewUserTitle_description}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_title}"/>
                    <h:outputText value="#{userController.selected.title}" title="#{bundle.ViewUserTitle_title}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_rating}"/>
                    <h:outputText value="#{userController.selected.rating}" title="#{bundle.ViewUserTitle_rating}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_active}"/>
                    <h:outputText value="#{userController.selected.active}" title="#{bundle.ViewUserTitle_active}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_accountCreateYear}"/>
                    <h:outputText value="#{userController.selected.accountCreateYear}" title="#{bundle.ViewUserTitle_accountCreateYear}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_fkUserRole}"/>
                    <h:outputText value="#{userController.selected.fkUserRole}" title="#{bundle.ViewUserTitle_fkUserRole}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_fkInstitute}"/>
                    <h:outputText value="#{userController.selected.fkInstitute}" title="#{bundle.ViewUserTitle_fkInstitute}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_fkGroup}"/>
                    <h:outputText value="#{userController.selected.fkGroup}" title="#{bundle.ViewUserTitle_fkGroup}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{userController.destroyAndView}" value="#{bundle.ViewUserDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewUserEditLink}"/>
                <br />
                <h:commandLink action="#{userController.prepareCreate}" value="#{bundle.ViewUserCreateLink}" />
                <br />
                <h:commandLink action="#{userController.prepareList}" value="#{bundle.ViewUserShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewUserIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
